function calcHTMLFontSize({ benchmark = 3.6, max = 740, min = 360 } = {}) {
    width_ = window.innerWidth > max ? max : window.innerWidth;
    width_ = width_ < min ? min : width_;
    let fontSize = Math.floor(width_ / benchmark);
    try {
        document.body.parentNode.style.fontSize = `${fontSize}px`;
    } catch (e) {
        document.write(`<html style="font-size: ${fontSize}px;">`);
    }
    return fontSize;
}
calcHTMLFontSize();
window.addEventListener('resize', calcHTMLFontSize);